package org.example.services.impl;

import org.example.services.NoAop;

public class NoAopImpl implements NoAop {
    @Override
    public void doSome() {
        doLog();
        System.out.println("执行业务方法doSome()");
        doTrans();
    }

    private void doTrans() {
        System.out.println("非业务功能，加入事务");
    }

    private void doLog() {
        System.out.println("非业务功能，日志功能");
    }

    @Override
    public void doOther() {

        doLog();
        System.out.println("执行了业务方法doOther()");
        doTrans();
    }
}
